package com.testfileupload.uploadimg.design.template.hummer;

public abstract class HummerModel {
    protected abstract void start();

    protected abstract void stop();

    protected abstract void alerm();

    protected abstract void enginBoom();

    final public void run() {
        this.start();
        this.enginBoom();
        if (this.isAlerm()) {
            this.alerm();
        }
        this.stop();
    }

    //狗子方法,默认会响
    protected boolean isAlerm() {
        return true;
    }
}
